insertChild

abstract fun insertChild(parent: DesignBlock, child: DesignBlock, index: Int)

Insert a new or existing child at a certain position in the parent's children. Required scope: "editor/add"

Parameters

parent

the block to update.

child

the child to insert. Can be an existing child of parent.

index

the index to insert or move to.